package mymyoux.graphics.graphicfactoryClasses
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	
	public class EventConnector extends EventDispatcher
	{
		protected var name:String;
		protected var object:EventDispatcher;
		public function EventConnector(name:String,object:EventDispatcher,value:String)
		{
			this.name=name;
			this.object=object;
			object.addEventListener(value,onEvent);
		}
		protected function onEvent(event:Event):void
		{
			this.dispatchEvent(new ConnectorEvent(name,object,event));
		}

	}
}